<template>
	<view class="read">
		<!-- {{labelInfo.data.name}} -->
		<uni-dateformat date="2022/01/18 10:53:46" :threshold="[60000, 3600000]"></uni-dateformat>
		<view class="">
			{{nowTime}}
		</view>
	</view>
</template>

<script>
	import getDateTime from '../../../common/getDateTime.js'
	export default{
		components:{
			
		},
		data(){
			return{
				nowTime:""
			}
		},
		props:{
			labelInfo:{
				type:Object,
				default:{}
			}
		},
		mounted() {
			console.log("阅读父传子");
			console.log(this.labelInfo);
			
			var timeStr = getDateTime.dateTimeStr('yyyy/MM/dd hh:mm:ss'); // yyyy:年 MM:月 dd:日 hh:时 mm:分 ss:秒 中间的分割符号可更改
			console.log(timeStr);
			this.nowTime = timeStr
		},
		components:{

		}
	}
</script>

<style scoped lang="scss">
	.read{
		color: red;
		height: 100%;;
	}
</style>
